#include "Song.h"
#include "IVIsitor.h"

void Song::Accept (IVisitor * visitor) {
	if ( visitor == 0 ) throw std::exception("null pointer in Song::Accept");
	visitor->Visit(this);
}

std::string const*  Song::getInterpret() const {
	return &mInterpret;
}

//! Returns the Album of the Song
/*!
	Returns the Album of the Song
	\returns The Album of the song.
*/
Album const * Song::getAlbum() const {
	return mAlbum;
}

//! Returns the Album of the Song
/*!
	Returns the Album of the Song
	\returns The Album of the song.
*/
TDuration const * Song::getDuration() const {
	return &mDuration;
}